cmake_minimum_required(VERSION 2.8)
project(libHRKinematics_b)

set(PACKAGE_NAME "HRKinematics")
set(PACKAGE_VERSION "1.0.0")
set(PACKAGE_SO_VERSION "1.1")
set(PACKAGE_DESCRIPTION "Inverse Kinematics solver for redundant manipulators.")
set(PACKAGE_AUTHOR "Gustavo Arechavaleta, Julio Jarquin.")
set(PACKAGE_MAINTAINER "Gustavo Arechavaleta, Julio Jarquin.")
set(PACKAGE_URL "https://www.assembla.com/code/naovision/subversion/nodes/33/moveNao-1.0/libHRKinematics")

set(SRC_FOLDER  src)
set(TEST_FOLDER unittest)
set(INC_FOLDER  include/HRKinematics)


find_package(qibuild)

############################################################
################# configure srcs and dirs ##################
############################################################

file(GLOB src_ ${SRC_FOLDER}/*.cpp)
file(GLOB inc_ ${INC_FOLDER}/*.hpp)
include_directories("include") 


qi_create_lib(HRKinematics SHARED ${src_} ${inc_})
qi_stage_lib(HRKinematics)

enable_testing()


SET(test_
	test_01
)


foreach(element ${test_})
	qi_create_test(${element} ${TEST_FOLDER}/${element}.cpp)
	qi_use_lib(${element} HRKinematics)
endforeach(element ${test_})



